﻿using H.QuickDoes;

namespace H.QuickDo.QuickDoes
{
    ///<inheritdoc/>
    public class HQuickDoFactory : IQuickDoFactory
    {
        ///<inheritdoc/>
        public IQuickDo<C> CreateInstance<C>(C context) where C : IQDContext
        {
            return new HQuickDo<C>(context);
        }

        ///<inheritdoc/>
        public IQuickDo<C> CreateInstance<C>() where C : IQDContext, new()
        {
            return new HQuickDo<C>(new C());
        }
    }
}
